package com.example.myapplication;
import android.app.Application;

public class App extends Application {

    private static App instance = null;

    public static App get() {

        return instance;

    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
    }

    public int getWidth() {

        return getResources().getDisplayMetrics().widthPixels;

    }

    public int getHeight() {

        return getResources().getDisplayMetrics().heightPixels;

    }

}
